import request from '@/utils/request'
import type {AttrInfoListModel} from './model/attrModel'
import type {CategoryIdObjModel} from './model/categoryModel'

enum Api {
  GetAttrInfoList = '/admin/product/attrInfoList'
}

// 根据三级分类id 获取平台属性对象数组
export const getAttrInfoListApi = ({category1Id, category2Id, category3Id}: CategoryIdObjModel) => request.get<any, AttrInfoListModel>(Api.GetAttrInfoList + `/${category1Id}/${category2Id}/${category3Id}`)